#include "PuckSupply.h"

PuckSupply::PuckSupply() : _count(N) {
   for (int i=0; i<N; ++i) 
      _store[i] = new Puck;
}

PuckSupply::~PuckSupply() {
   for (int i=0; i<N; ++i) 
      delete _store[i];
}

Puck* PuckSupply::get() {
   return (_count>0 ? _store[--_count] : 0);
}

int PuckSupply::size() const {
   return _count;
}
